import request from '@/utils/request'

// 列表
export function getList(data, page) {
    return request({
        url: '/Gift/get_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}

// 获取分页
export function getPage(data) {
    return request({
        url: '/Gift/get_page',
        method: 'post',
        data: data
    })
}
// 尺寸
export function getSizeList(data, page) {
    return request({
        url: '/Gift_size/index',
        method: 'post',
        data: data
    })
}
//获取类别
export function get_type(data) {
    return request({
        url: '/Gift_type/index',
        method: 'post',
        data: data
    })
}
//获取管理图片
export function get_img(data) {
    return request({
        url: '/Gift/get_gift_img',
        method: 'post',
        data: data
    })
}
//图片管理提交
export function update_img(data) {
    return request({
        url: '/Gift/update_gift_img',
        method: 'post',
        data: data
    })
}
//图片上传
export function upload_img(data) {
    return request({
        url: '/Gift/gift_img_upload',
        method: 'post',
        data: data
    })
}
//图片提交审核
export function check_img(data) {
    return request({
        url: '/gift/gift_img_upload_check',
        method: 'post',
        data: data
    })
}